<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.uploadify.v2.1.4.min.js"></script>
<link rel="stylesheet" href="css/uploadify.css" type="text/css"
	media="screen" />

<script type="text/javascript">
	$(function() {
		$('#file_upload').uploadify({
			'uploader' : 'js/uploadify.swf',
			'script' : 'rest/file/upload/1',
			'fileDataName' : 'file',
			'cancelImg' : 'img/cancel.png',
			'multi' : true
		});
	});
</script>
<title>文件上传</title>
</head>
<body>
	<h1>Simple File Upload</h1>

	<h3>Multiple file upload made easy</h3>
	<div>
		<div id="file_upload"></div>
		<br /> <input type="button" value="Clear Upload Queue" onclick="$('#file_upload').uploadifyClearQueue();" /> 
			<input type="button" value="Submit Upload Queue" onclick="$('#file_upload').uploadifyUpload();" />
	</div>
	
	<hr>
	<h1>单独文件上传</h1>
	
	<form action="rest/file/upload/19" method="post" enctype="multipart/form-data">
		File:<input type="file" name="fileup0" /><br>
			<textarea name="desc" rows="4" cols="70"></textarea><br>
		File:<input type="file" name="fileup1" /><br>
			<textarea name="desc" rows="4" cols="70"></textarea><br>
		File:<input type="file" name="fileup2" /><br>
			<textarea name="desc" rows="4" cols="70"></textarea><br>
		File:<input type="file" name="fileup3" /><br>
			<textarea name="desc" rows="4" cols="70"></textarea><br>
		<input type="submit" value="Upload All File"/><br>
	</form>
</body>
</html>
